package com.proba.annotations.hibernate;

import java.sql.Timestamp;
import java.util.List;

import org.hibernate.criterion.Restrictions;

import com.proba.annotations.TrebovanjeAsfaltDAO;
import com.proba.annotations.pojo.TrebovanjeAsfalt;

/**
 * <p>Hibernate DAO layer for TrebovanjeAsfalts</p>
 * <p>Generated at Thu Feb 25 19:39:58 CET 2010</p>
 *
 * @author Salto-db Generator v1.0.16 / EJB3 + Hibernate DAO
 * @see http://www.hibernate.org/328.html
 */
public class TrebovanjeAsfaltHibernateDAO extends
		AbstractHibernateDAO<TrebovanjeAsfalt, Long> implements
		TrebovanjeAsfaltDAO {

	/**
	 * Find TrebovanjeAsfalt by datum
	 */
	public List<TrebovanjeAsfalt> findByDatum(Timestamp datum) {
		return findByCriteria(Restrictions.eq("datum", datum));
	}
	
	/**
	 * Find TrebovanjeAsfalt by proizvodenPogon
	 */
	public List<TrebovanjeAsfalt> findByProizvodenPogon(Long proizvodenPogon) {
		return findByCriteria(Restrictions.eq("proizvodenPogon", proizvodenPogon));
	}
	
	/**
	 * Find TrebovanjeAsfalt by partner
	 */
	public List<TrebovanjeAsfalt> findByPartner(Long partner) {
		return findByCriteria(Restrictions.eq("partner", partner));
	}
	
	/**
	 * Find TrebovanjeAsfalt by tipGotovProizvod
	 */
	public List<TrebovanjeAsfalt> findByTipGotovProizvod(Long tipGotovProizvod) {
		return findByCriteria(Restrictions.eq("tipGotovProizvod", tipGotovProizvod));
	}
	
	/**
	 * Find TrebovanjeAsfalt by sevkupnoKolicini
	 */
	public List<TrebovanjeAsfalt> findBySevkupnoKolicini(Long sevkupnoKolicini) {
		return findByCriteria(Restrictions.eq("sevkupnoKolicini", sevkupnoKolicini));
	}
	
	/**
	 * Find TrebovanjeAsfalt by bitumen
	 */
	public List<TrebovanjeAsfalt> findByBitumen(Long bitumen) {
		return findByCriteria(Restrictions.eq("bitumen", bitumen));
	}
	
	/**
	 * Find TrebovanjeAsfalt by mazut
	 */
	public List<TrebovanjeAsfalt> findByMazut(Long mazut) {
		return findByCriteria(Restrictions.eq("mazut", mazut));
	}
	
	/**
	 * Find TrebovanjeAsfalt by ekstraLesna
	 */
	public List<TrebovanjeAsfalt> findByEkstraLesna(Long ekstraLesna) {
		return findByCriteria(Restrictions.eq("ekstraLesna", ekstraLesna));
	}
	

}
